#if !defined(AFX_LEDPANE_H__54A71CE2_4DCE_4A43_8954_74160F05571D__INCLUDED_)
#define AFX_LEDPANE_H__54A71CE2_4DCE_4A43_8954_74160F05571D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LedPane.h : header file
//
#include "Led.h"
#include "GfxOutBarCtrl.h"

#define	PANEWIDTH		160
#define	PANELEFT		3	
/////////////////////////////////////////////////////////////////////////////
// CLedPane window

class CLedPane : public CWnd
{
// Construction
public:
	CLedPane();
// Attributes
public:
	int m_nLedCount;
	int m_nOldLedCount;
	CRect	m_rcClientRect;
	CGfxOutBarCtrl *wndBar;
//	CLed *m_pRecLed;
//	CLed *m_pAlarmLed;
//	CStatic *m_pLedNum;
	CLed m_RecLed[MAX_RECORD_NUM];
	CLed m_AlarmLed[MAX_RECORD_NUM];
	CStatic m_LedNum[MAX_RECORD_NUM];
	CStatic m_LedName[3];
	int m_nNowPos;
	int m_nMaxPos;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLedPane)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetLedToolTip(int nNum,Dev_Info *pDevInfo);
	void SetLedVisible(int nNum,bool bVisible);
	void UpdateLed(int nType);
	void InitLed();
	virtual ~CLedPane();

	// Generated message map functions
protected:
	//{{AFX_MSG(CLedPane)
	CFont   *pLedFont;
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LEDPANE_H__54A71CE2_4DCE_4A43_8954_74160F05571D__INCLUDED_)
